package com.zl.csMall.mine.recAddress.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zl.csMall.mine.recAddress.po.RecAddress;

import java.util.List;

public interface RecAddressService extends IService<RecAddress> {


    /**
     * @description: 获取用户的全部收货地址
     * @param userId 用户ID
     * @return: 收货地址集合
     * @author ChenNing
     * @date: 2025-10-15 17:52
     */
    List<RecAddress> getByUserId(long userId);

    /**
     * @description: 取消该用户的默认地址
     * @param userId 用户ID
     * @author ChenNing
     * @date: 2025-10-24 10:23
     */
    void cancelDefault(long userId);

}
